package com.zz.services.impl;

import com.zz.dao.CourseVideoDao;
import com.zz.domain.CourseVideo;
import com.zz.services.CourseVideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Service
public class CourseVideoServiceImpl implements CourseVideoService {
    @Autowired
    CourseVideoDao courseVideoDao ;
    @Override
    public List<CourseVideo> getVideoByTopicId(Integer topicId) {
        Map<String,Object> map = new HashMap<>();
        map.put("topicId",topicId);
        map.put("flag",1);
        List<CourseVideo> videoList = courseVideoDao.findCourseVideoByCondition(map);
        return videoList;
    }
}
